package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.entity.CustomerCollaborator;
import com.aiti.lulian.vo.CustomerCollaboratorVo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CustomerCollaboratorMapper extends SuperMapper<CustomerCollaborator> {

    List<Map<String, String>> selectCollaboratorList(@Param("customerIds") List<String> customerIds);

    @MapKey("userId")
    Map<String, Map<String, String>> selectRelatedPersonnelList(@Param("customerId") String customerId);

    List<CustomerCollaboratorVo> selectCustomerCollaboratorList(@Param("customerId") String customerId);
}